#include <stdio.h>
#define MAX_V 20
typedef int weight;
typedef struct {
    int vex[MAX_V];
    weight array[MAX_V][MAX_V];
} Graph;